/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package exatrez.model;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author fikri
 */
@Entity
@Table(name = "inbox_sts_code")
@NamedQueries({
    @NamedQuery(name = "InboxStatusCode.findAll", query = "SELECT i FROM InboxStatusCode i")})
public class InboxStatusCode implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "inbox_sts_code_id")
    private Integer inboxStsCodeId;
    @Column(name = "sts_name")
    private String stsName;
    
    @Embedded
    private InfoAudit infoAudit;

    public InboxStatusCode() {
    }

    public InboxStatusCode(Integer inboxStsCodeId) {
        this.inboxStsCodeId = inboxStsCodeId;
    }

   
    public Integer getInboxStsCodeId() {
        return inboxStsCodeId;
    }

    public void setInboxStsCodeId(Integer inboxStsCodeId) {
        this.inboxStsCodeId = inboxStsCodeId;
    }

    public String getStsName() {
        return stsName;
    }

    public void setStsName(String stsName) {
        this.stsName = stsName;
    }

    public InfoAudit getInfoAudit() {
        return infoAudit;
    }

    public void setInfoAudit(InfoAudit infoAudit) {
        this.infoAudit = infoAudit;
    }   
    

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (inboxStsCodeId != null ? inboxStsCodeId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof InboxStatusCode)) {
            return false;
        }
        InboxStatusCode other = (InboxStatusCode) object;
        if ((this.inboxStsCodeId == null && other.inboxStsCodeId != null) || (this.inboxStsCodeId != null && !this.inboxStsCodeId.equals(other.inboxStsCodeId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "exatrez.model.InboxStatusCode[ inboxStsCodeId=" + inboxStsCodeId + " ]";
    }
    
}
